package com.cvit.dao;

import com.cvit.model.Orders;
import com.cvit.model.OrdersExample;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrdersMapper {
	
	/**
     * 根据身份证号或者学生号查询订单表
     * */
	Orders selectById(String id);
	
	/**
	 * 根据订单号查询学生序号
	 * */
	String selectStudentIdById(String id);
	
    long countByExample(OrdersExample example);

    int deleteByExample(OrdersExample example);

    int deleteByPrimaryKey(String id);

    int insert(Orders record);

    int insertSelective(Orders record);

    List<Orders> selectByExample(OrdersExample example);

    Orders selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

	int selectTypeById(String id);

	Orders selcetByStudentId(String id);
    
}